package ceshi.ceshiyixia;

import org.apache.log4j.Logger;
import org.mybatis.spring.annotation.MapperScan;
//import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
import org.springframework.boot.context.embedded.EmbeddedServletContainer;
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
import org.springframework.context.annotation.ComponentScan;
//import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@SpringBootApplication
/*@EnableTransactionManagement*/
@ComponentScan("ceshi.ceshiyixia")
@MapperScan("ceshi.ceshiyixia.mapper")
@RestController
public class Application2 implements EmbeddedServletContainerCustomizer {
	private static Logger logger = Logger.getLogger(Application2.class);
	
	
    public static void main(String[] args) {
        SpringApplication.run(Application2.class, args);
    }

    @Override
    public void customize(ConfigurableEmbeddedServletContainer container) {
        container.setPort(7777);
    }
}
